package com.zdp.test.proxy._static;

import com.zdp.test.proxy.base.BaseInterface;

/**
 * @describte:代理对象
 * @program:ThoughtTest
 * @author:zhengdp
 * @create:2021-12-25 20:33:30
 **/
public class StaticProxyObject implements BaseInterface {

    private BaseInterface beProxyObject;

    public StaticProxyObject(BaseInterface beProxyObject) {
        this.beProxyObject= beProxyObject;
    }

    @Override
    public void function() {
        System.out.println("代理类增强方法1");
        beProxyObject.function();
        System.out.println("代理类增强方法2");
    }
}
